﻿using System;
using System.Linq;
using KeyCore.Domain.Model;

namespace KeyCore.Framework.DAL.Interfaces
{
    public interface IUsersRolesRepository
    {
        void AddRole(string roleName);
        IQueryable<UserRoles> GetAllRoles();
        UserRoles GetRoleByName(string roleName);
        UserRoles GetRoleById(int roleId);
        UserRoles GetUserRole(string userName);
        void DeleteRole(string roleName);
        void AddUserToRole(Guid userId, int roleId);
        void AddUserToRole(string userName, string roleName);
        bool RoleExist(string roleName);
    }
}
